<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>mini Vue</title>
  <script src="mvue.js"></script>
  <script src="compile.js"></script>
</head>

<body>
  <div id="app">
    <h1>hello</h1>
    <h2>{{count}}</h2>
    <input type="text" m-model="count">
    <button @click="add">add</button>
  </div>
</body>
<script>
  new MVue({
    el: '#app',
    data: {
      count: 100
    },
    methods: {
      add: function() {
        this.count++
      }
    },
  })
</script>

</html>